package com.navi.job;

import com.navi.SpringContext;
import com.navi.job.gpfdist.HmsLoaderServiceWithGpfdist;

import java.util.concurrent.Callable;

/**
 * Created by admin on 2017/10/13.
 */
public class HmsLoaderCallable implements Callable<String> {
    private String queueName;

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    @Override
    public String call() throws Exception {
        final HmsLoaderServiceWithGpfdist bean = SpringContext.getBean(HmsLoaderServiceWithGpfdist.class);
        bean.subMainProc(queueName);
        return null;
    }
}
